package com.example.medicalretrieval.pojo;

import androidx.room.Entity;
import androidx.room.PrimaryKey;
import androidx.room.TypeConverters;

import com.example.medicalretrieval.utils.DateConverter;

import java.util.Date;

@Entity
public class BrowsingHistory {

    @PrimaryKey(autoGenerate = true)
    private int id;

    private String title;
    @TypeConverters(DateConverter.class)
    private Date date;

    private String authors;

    @Override
    public String toString() {
        return "BrowsingHistory{" +
                "id=" + id +
                ", title='" + title + '\'' +
                ", date=" + date +
                ", authors='" + authors + '\'' +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public String getAuthors() {
        return authors;
    }

    public void setAuthors(String authors) {
        this.authors = authors;
    }

    public BrowsingHistory() {
    }
}
